// 确保网络畅通的情况下运行，安装依赖
// npm install request

function smss(){
var sender = require('./SmsSender');

// 使用时请更换相应的 sdkappid 和 appkey
sender.config.sdkappid = 1400050835;
sender.config.appkey = '325a5d0c5eabd44eb94fbc24e3a0e188';

var phoneNumbers = getelementbyid("sms").value;

sender.singleSmsSend(0, '86', phoneNumbers, '您已成功收到来自小明的1元转账，请登录钱包进行查看。', '', '', function (data) {
    var ret = JSON.parse(data);
    if (0 != ret.result) {
        console.log(ret);
    }
});

sender.singleSmsSendWithParam('86', phoneNumbers, 184, ['小明','1'], '', '', '', function (data) {
    var ret = JSON.parse(data);
    if (0 != ret.result) {
        console.log(ret);
    }
});
}